//
//  TNAutoCoverController.swift
//  CommonTool
//
//  Created by Name i on 2022/4/18.
//

import UIKit

class TNAutoCoverController: UIViewController {

    
    lazy var autoCoverView: TNAutoCoverView = {
        let coverView = TNAutoCoverView()
        return coverView
    }()
    
    private var show: Bool = false
    
    override func viewDidLoad() {
        super.viewDidLoad()

        view.addSubview(autoCoverView)
        autoCoverView.snp.makeConstraints { make in
            make.left.right.centerY.equalToSuperview()
            make.height.equalTo(258)
        }

        
        autoCoverView.updateContent(content: "会路演线上交流线流线会路演线上交流线流线会路演线上交流线流线会路演线上交流线流线会路演线上交流线流线会路演线上交流线流线")
    }
    
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        show = !show
        autoCoverView.showLogoOrNot(show: show)
    }
    


}
